package com.tuzhi.base.jpa.healper.wenhao;

import javax.persistence.criteria.Predicate;

public class TSpecifications {
    public TSpecifications() {
    }

    public static <T> TPredicateBuilder<T> and() {
        return new TPredicateBuilder(Predicate.BooleanOperator.AND);
    }

    public static <T> TPredicateBuilder<T> or() {
        return new TPredicateBuilder(Predicate.BooleanOperator.OR);
    }

    public static String lkFormat(String value) {
        return String.format("%%%s%%", value);
    }
}
